<template>
	<view>
    <web-view v-if="link" :src="link"></web-view>
  </view>
</template>

<script>
	var that;

	export default {
		data() {
			return {
				id : null,
				link : null,
			}
		},
		
		onLoad(option) {
			that = this
			that.id = option.id
			that.util.request({
				'url' : 'VueAdvert',
				'data' : {
					id : option.id
				},
				success:function(res){
					that.link = res.data.data.link
					console.log(that.link);
				}
			})
		},

		methods: {

		}
	}
</script>

<style>
</style>
